import axios from "axios";

function requestAll <T>(urls: string[], maxNum: number, callback: T) {
  if (
    !urls || !maxNum || !callback || !urls.length ||
    urls.some(v => typeof v !== 'string')
  ) throw new Error('参数错误')

  let curUrlIndex = 0 // 当前发送请求的url下标



}

requestAll(['1', '2', '3', '4'], 3, () => console.log(111))
